.app-root {
  display: flex;
  min-height: 100vh;
  background: var(--background-color, #F8F8F8);
}

.sidebar {
  width: 280rpx;
  background: #ffffff;
  border-right: 1rpx solid rgba(0,0,0,0.06);
  padding: 24rpx;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 100rpx;
}

.collapse-toggle {
  position: absolute;
  right: -12rpx;
  top: 50%;
  transform: translateY(-50%);
  width: 24rpx;
  height: 24rpx;
  background: #ffffff;
  border: 1rpx solid rgba(0,0,0,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
}

.sidebar-logo {
  width: 120rpx;
  height: 120rpx;
  margin-bottom: 20rpx;
}

.sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12rpx;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12rpx 16rpx;
  border-radius: 10rpx;
  color: #333;
  background: transparent;
  text-align: left;
  white-space: nowrap;
}

.sidebar-link:active {
  background: #f5f5f5;
}

.icon {
  font-size: 36rpx;
  min-width: 36rpx;
  margin-right: 16rpx;
}

.link-text {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.collapsed-text {
  display: none;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 12rpx;
}

.sidebar.collapsed .icon {
  margin-right: 0;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 88rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24rpx;
  background: var(--navigationBarBackgroundColor, #F8F8F8);
  border-bottom: 1rpx solid rgba(0,0,0,0.04);
}

.topbar-title {
  font-size: 30rpx;
  color: #333;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 12rpx;
}

.status-text {
  color: #666;
}

.action-link {
  padding: 8rpx 12rpx;
  background: #007bff;
  color: #fff;
  border-radius: 8rpx;
}

.content-body {
  padding: 24rpx;
}

@media (max-width: 640px) {
  .app-root {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    flex-direction: row;
    padding: 12rpx;
    gap: 12rpx;
    overflow: auto;
  }
  
  .sidebar.collapsed {
    width: 100%;
  }
  
  .sidebar-nav {
    flex-direction: row;
  }
  
  .collapse-toggle {
    display: none;
  }
}